
EXE = libcrc16.so
OBJ = libcrc16.o
SRC = libcrc16.c

CC = gcc
CFLAGS = -fPIC
LDFLAGS = -shared

EXE:$(OBJ)
	$(CC) -o $(EXE) $(LDFLAGS) $^
OBJ:$(SRC)
	$(CC) $(CFLAGS) -o $(OBJ) -c $^

.PHONY:clean
clean:
	-$(RM) $(OBJ) $(EXE)

